<?php
namespace ZfcUser\Model;

class Tuser
{
	public $user_id;
	public $address;
	public $state;
	public $city;
	public $create_time;
	public $dob;
	public $email_id;
	public $email_validation;
	public $father_name;
	public $first_name;
	public $gender;
	public $ip;
	public $last_name;
	public $login_id;
	public $mobile;
	public $password;
	public $user_status;
	public $surname;
	public $validation_code;
	public $validation_time;
	
	public function exchangeArray($data)
	{
		$this->user_id	  		= (isset($data['user_id']))  		? $data['user_id']    		: null;
        $this->address 	  		= (isset($data['address'])) 		? $data['address'] 			: null;        
        $this->state   			= (isset($data['state']))  			? $data['state']			: null;	
		$this->city   			= (isset($data['city']))  			? $data['city']				: null;	
		$this->create_time   	= (isset($data['create_time']))  	? $data['create_time']		: null;					
		$this->dob      		= (isset($data['dob']))				? $data['dob']   			: null;	
		$this->email_id	  		= (isset($data['email_id']))  		? $data['email_id']    		: null;
        $this->email_validation = (isset($data['email_validation']))? $data['email_validation'] : null;        
        $this->father_name   	= (isset($data['father_name']))  	? $data['father_name']		: null;			
		$this->first_name      	= (isset($data['first_name']))		? $data['first_name']   	: null;	
		$this->gender	  		= (isset($data['gender']))  		? $data['gender']    		: null;
        $this->ip 	  			= (isset($data['ip'])) 				? $data['ip'] 				: null;        
        $this->last_name   		= (isset($data['last_name']))  		? $data['last_name']		: null;			
		$this->login_id      	= (isset($data['login_id']))		? $data['login_id']   		: null;	
		$this->mobile	  		= (isset($data['mobile']))  		? $data['mobile']    		: null;
        $this->password 	  	= (isset($data['password'])) 		? $data['password'] 		: null;        
        $this->user_status   	= (isset($data['user_status']))  	? $data['user_status']		: null;			
		$this->surname      	= (isset($data['surname']))			? $data['surname']   		: null;	
		$this->validation_code	= (isset($data['validation_code'])) ? $data['validation_code']  : null;
        $this->validation_time 	= (isset($data['validation_time'])) ? $data['validation_time'] 	: null;        
    }
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}